package com.zhxh.nzpos.model;

import java.io.Serializable;

/**
 * 进货
 * 
 * @author Administrator
 * 
 */
public class Buyin implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 368249469138708653L;

	private String id;// id

	private String goodId;// 商品ID
	
	private String name;// 商品name
	private String buyinDate;// 进货日期
	private float price;// 单个价格
	private int count;// 数量
	private boolean payed;// 是否付款
	private boolean received;// 是否到货
	private String supplierId;// 供货商ID
	private String opratorId;// 操作员ID

	private String orderId; // 订单号

	private String categoryId; // 分类id
	private String units; // 单位
	private String specification; // 规格
	
	private long  created; //创建时间
    private long modified;  //修改时间
    
    
	public String getName() {
		return name;
	}

	public void setName(String goodName) {
		this.name = goodName;
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getGoodId() {
		return goodId;
	}

	public void setGoodId(String goodId) {
		this.goodId = goodId;
	}

	public String getBuyinDate() {
		return buyinDate;
	}

	public void setBuyinDate(String buyinDate) {
		this.buyinDate = buyinDate;
	}

	public float getPrice() {
		return price;
	}

	public void setPrice(float price) {
		this.price = price;
	}

	public int getCount() {
		return count;
	}

	public void setCount(int count) {
		this.count = count;
	}

	public boolean isPayed() {
		return payed;
	}

	public void setPayed(boolean payed) {
		this.payed = payed;
	}

	public boolean isReceived() {
		return received;
	}

	public void setReceived(boolean received) {
		this.received = received;
	}

	public String getSupplierId() {
		return supplierId;
	}

	public void setSupplierId(String supplierId) {
		this.supplierId = supplierId;
	}

	public String getOpratorId() {
		return opratorId;
	}

	public void setOpratorId(String opratorId) {
		this.opratorId = opratorId;
	}
	public long getCreated() {
		return created;
	}

	public void setCreated(long created) {
		this.created = created;
	}

	public long getModified() {
		return modified;
	}

	public void setModified(long modified) {
		this.modified = modified;
	}

	public float getTotal() {
		return price * count;
	}
	
	public String getOrderId() {
		return orderId;
	}

	public void setOrderId(String orderId) {
		this.orderId = orderId;
	}
	
	public String getCategoryId() {
		return categoryId;
	}

	public void setCategoryId(String categoryId) {
		this.categoryId = categoryId;
	}
	
	public String getUnits() {
		return units;
	}

	public void setUnits(String units) {
		this.units = units;
	}
	
	public String getSpecification() {
		return specification;
	}

	public void setSpecification(String specification) {
		this.specification = specification;
	}

	public String toString() {
		return "Buyin [id=" + id + ",goodId=" + goodId + ",buyinDate="
				+ buyinDate + ",price=" + price + ",count=" + count
				+ ",payed=" + payed + ",received=" + received + ",supplierId="
				+ supplierId + ",opratorId=" + opratorId +",created=" + created +",modified=" + modified + "]";
	}

}
